package com.xingren.service.wms.client;

import com.xingren.service.client.hystrix.HystrixCommandConfig;
import com.xingren.service.client.hystrix.HystrixThreadConfig;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class WmsHystrixConfig {

    public static HystrixCommandConfig getDefaultCommandConfig() {
        HystrixCommandConfig config = new HystrixCommandConfig(
                "wms",
                "wms");
        return config;
    }

    public static HystrixThreadConfig getDefaultThreadConfig() {
        HystrixThreadConfig config = new HystrixThreadConfig(
                "wms-tp");
        return config;
    }
}
